﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HDS.Common.Helper
{
    public static class ObjectHelper
    {
        public static bool IsEmpty<T>(this IEnumerable<T> list)
        {
            return list == null || !list.Any();
        }

        public static bool IsEmpty<T>(this T[] arr)
        {
            return arr == null || !arr.Any();
        }
    }
}